﻿using System;
using System.Web.UI;

namespace Developmentalmadness.Web.UI.ExtJsControlLibrary
{
    /// <summary>
    /// ClientEvent objects are designed to allow a client side event handler 
    /// to be defined for an ExtJsControl using either the name of a defined
    /// event handler or to pass in an anonymous function as the body of 
    /// the ClientEvent declaration.
    /// </summary>
    /// <remarks>
    /// Currently, anonymous functions are not explicitly supported, but 
    /// full support is planned. I wonder if there is a way to include
    /// intellisense support w/in the body of a control?
    /// </remarks>
    [ToolboxData("<{0}:ClientEvent runat=\"server\"></{0}:ClientEvent>")]
    public class ClientEvent
    {
        [PersistenceMode(PersistenceMode.Attribute)]
        public String name { get; set; }
        [PersistenceMode(PersistenceMode.Attribute)]
        public String action { get; set; }
    }
}
